﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="shop_config.aspx.cs" Inherits="WebSite.admin.system.shop_config" %>

 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>万礼通后台管理系统</title>
    <link href="../main.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="../../js/function.js"></script>

<script language="javascript">
    function getcity(objcity, objprov, objplace, defcity, defprov, defplace) {
        while (objcity.options != null && objcity.options.length > 0) {
            objcity.options.remove(0);
        }
        var oOptionFirst = document.createElement("OPTION");
        objcity.options.add(oOptionFirst);
        oOptionFirst.Value = '';
        oOptionFirst.innerText = '请选择';
        if (defcity == '') {
            oOptionFirst.selected = true;
        }
        for (i = 0; i < city.length; i++) {
            var oOption = document.createElement("OPTION");
            objcity.options.add(oOption);
            oOption.Value = city[i];
            oOption.innerText = city[i];
            if (city[i] == defcity) {
                oOption.selected = true;
            }
        }
        chgprov(objcity, objprov, objplace, defprov, defplace);
    }

    function chgprov(objcity, objprov, objplace, defprov, defplace) {
        idx = objcity.selectedIndex - 1;
        while (objprov.options != null && objprov.options.length > 0) {
            objprov.options.remove(0);
        }
        var oOptionFirst = document.createElement("OPTION");
        objprov.options.add(oOptionFirst);
        oOptionFirst.Value = '';
        oOptionFirst.innerText = '请选择';
        if (defprov == '') {
            oOptionFirst.selected = true;
        }
        if (idx >= 0) {
            for (i = 0; i < eval('prov' + idx).length; i++) {
                var oOption = document.createElement("OPTION");
                objprov.options.add(oOption);
                oOption.Value = eval('prov' + idx + '[i]');
                oOption.innerText = eval('prov' + idx + '[i]');
                if (eval('prov' + idx + '[i]') == defprov) {
                    oOption.selected = true;
                }
            }
        }
        chgplace(objcity, objprov, objplace, defplace);
    }


    function chgplace(objcity, objprov, objplace, defplace) {
        pidx = objcity.selectedIndex - 1;
        idx = objprov.selectedIndex - 1;
        while (objplace.options != null && objplace.options.length > 0) {
            objplace.options.remove(0);
        }
        var oOptionFirst = document.createElement("OPTION");
        objplace.options.add(oOptionFirst);
        oOptionFirst.Value = '';
        oOptionFirst.innerText = '请选择';
        if (defplace == '') {
            oOptionFirst.selected = true;
        }
        if (idx >= 0) {
            for (i = 0; i < eval('place' + pidx + '_' + idx).length; i++) {
                var oOption = document.createElement("OPTION");
                objplace.options.add(oOption);
                oOption.Value = eval('place' + pidx + '_' + idx + '[i]');
                oOption.innerText = eval('place' + pidx + '_' + idx + '[i]');
                if (eval('place' + pidx + '_' + idx + '[i]') == defplace) {
                    oOption.selected = true;
                }
            }
        }
    }
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<center>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
  <table width="90%" border="1" cellpadding="3" cellspacing="1" bordercolor="#E2E7EB">
    <tr align="center">
      <td bgcolor="#C9D2DA"><a href="shop_config.aspx" class="menu02">网店信息</a></td>
      <td bgcolor="#E2E7EB"><a href="shop_config02.aspx">基本设置</a></td>
      <td bgcolor="#E2E7EB"><a href="shop_config03.aspx">显示设置</a></td>
      <!--td bgcolor="#E2E7EB"><a href="shop_config04.aspx">购物流程</a></td>
      <td bgcolor="#E2E7EB"><a href="shop_config05.aspx">商品显示设置</a></td-->
      <!--td bgcolor="#E2E7EB"><a href="../template.aspx">模板选择</a></td-->
      
    </tr>
  </table>
  <br />
  <table width="90%" border="0" cellpadding="3" cellspacing="0">
    <tr>
      <td align="right" valign="top" class="title01">商店名称：</td>
      <td align="left"><input size="40" name="shopname" id="shopname" runat="server" />      </td>
    </tr>
      <tr>
          <td align="right" class="title01" valign="top">
              商店网址：</td>
          <td align="left"><input size="40" name="shopurl" id="shopurl" runat="server" /> 
          </td>
      </tr>
    <tr>
      <td align="right" valign="top" class="title01"><a title="点击此处查看提示信息" href="javascript:clicksa(config1);"><img height="16" alt="点击此处查看提示信息" src="../images/notice.gif" width="16" border="0" /></a> 商店标题：</td>
      <td align="left"><input size="40" name="shoptitle" id="shoptitle" runat="server" /><span id="config1" style="display:none"><br />商店的标题将显示在浏览器的标题栏</span></td>
    </tr>
    <tr>
      <td align="right" valign="top" class="title01">商店描述：</td>
      <td align="left"><input size="40" name="shopcontent" id="shopcontent" runat="server" />      </td>
    </tr>
    <tr>
      <td align="right" valign="top" class="title01">商店关键字：</td>
      <td align="left"><input size="40" name="shopkey" id="shopkey" runat="server" />      </td>
    </tr>
    <tr style="display:none;">
      <td align="right" valign="top" class="title01">所在国家：</td>
      <td align="left"><select name="city" id="city" size="1" onChange="chgprov(this,form1.province,form1.place,'','')" runat="server"></select><asp:Label ID="Label1" runat="server" Text=""></asp:Label></td>
    </tr>
    <tr style="display:none;">
      <td align="right" valign="top" class="title01">所在省份：</td>
      <td align="left"><select name="province" id="province" size="1" onChange="chgplace(form1.city,this,form1.place,'')" runat="server"></select><asp:Label ID="Label2" runat="server" Text=""></asp:Label></td>
    </tr>
    <tr style="display:none;">
      <td align="right" valign="top" class="title01">所在城市：</td>
      <td align="left"><select name="place" id="place" runat="server"></select><script>                                                                                   getcity(form1.city, form1.province, form1.place, '', '', '')</script><asp:Label ID="Label3" runat="server" Text=""></asp:Label></td>
    </tr>
    <tr style="display:none;">
      <td align="right" valign="top" class="title01">详细地址：</td>
      <td align="left"><input size="40" name="shopaddress" id="shopaddress" runat="server" />      </td>
    </tr>
    <tr>
      <td align="right" valign="top" class="title01"><a title="点击此处查看提示信息" href="javascript:clicksa(config2);"><img height="16" alt="点击此处查看提示信息" src="../images/notice.gif" width="16" border="0" /></a> 客服QQ号码：</td>
      <td align="left"><input size="40" name="shopqq" id="shopqq" runat="server" /><span id="config2" style="display:none"><br />如果您有多个客服的QQ号码，请在每个号码之间使用半角逗号（|）分隔。</span></td>
    </tr>
    <tr style="display:none;">
      <td align="right" valign="top" class="title01"><a title="点击此处查看提示信息" href="javascript:clicksa(config3);"><img height="16" alt="点击此处查看提示信息" src="../images/notice.gif" width="16" border="0" /></a> 淘宝阿里旺旺：</td>
      <td align="left"><input size="40" name="shopaliwan" id="shopaliwan" runat="server" /><span id="config3" style="display:none"><br />如果您有多个客服的淘宝阿里旺旺号码，请在每个号码之间使用半角逗号（|）分隔。</span></td>
    </tr>
    <tr style="display:none;">
      <td align="right" valign="top" class="title01"><a title="点击此处查看提示信息" href="javascript:clicksa(config4);"><img height="16" alt="点击此处查看提示信息" src="../images/notice.gif" width="16" border="0" /></a> Skype：</td>
      <td align="left"><input size="40" name="shopskype" id="shopskype" runat="server" /><span id="config4" style="display:none"><br />如果您有多个客服的Skype号码，请在每个号码之间使用半角逗号（|）分隔。</span></td>
    </tr>
    <tr style="display:none;">
      <td align="right" valign="top" class="title01"><a title="点击此处查看提示信息" href="javascript:clicksa(config5);"><img height="16" alt="点击此处查看提示信息" src="../images/notice.gif" width="16" border="0" /></a> 贸易通阿里旺旺：</td>
      <td align="left"><input size="40" name="shopyahoo" id="shopyahoo" runat="server" /><span id="config5" style="display:none"><br />如果您有多个客服商务通阿里旺旺号码，请在每个号码之间使用半角逗号（|）分隔。</span></td>
    </tr>
    <tr style="display:;">
      <td align="right" valign="top" class="title01"><a title="点击此处查看提示信息" href="javascript:clicksa(config6);"><img height="16" alt="点击此处查看提示信息" src="../images/notice.gif" width="16" border="0" /></a> MSN：</td>
      <td align="left"><input size="40" name="shopmsn" id="shopmsn" runat="server" /><span id="config6" style="display:none"><br />如果您有多个客服的MSN号码，请在每个号码之间使用半角逗号（|）分隔。</span></td>
    </tr>
    <tr>
      <td align="right" valign="top" class="title01">
          服务邮件地址：</td>
      <td align="left"><input size="40" name="shopemail" id="shopemail" runat="server" />      </td>
    </tr>
    <tr>
      <td align="right" valign="top" class="title01">邮件密码：</td>
      <td align="left"><asp:TextBox ID="shopwebmsg" runat="server"></asp:TextBox></td>
    </tr>
    <tr>
      <td align="right" valign="top" class="title01">客服电话：</td>
      <td align="left"><input size="40" name="shoptel" id="shoptel" runat="server" />      </td>
    </tr>
    <tr style="display:none;">
      <td align="right" valign="top" class="title01">暂时关闭网站：</td>
      <td align="left">
        <asp:RadioButtonList ID="shopisweb" runat="server" RepeatColumns="2" Width="130px">
            <asp:ListItem Value="1">是</asp:ListItem>
            <asp:ListItem Value="0">否</asp:ListItem>
        </asp:RadioButtonList></td>
    </tr>
    
    <tr>
      <td align="right" valign="top" class="title01">商店 Logo：</td>
      <td align="left"><asp:TextBox ID="shoplogo" runat="server"></asp:TextBox>
                    <input id="file1" type="file" runat="server" /><asp:Button ID="Button1" runat="server" Text="上传" OnClick="Button1_Click" /><br /></td>
    </tr>
    <tr  style="display:none;">
      <td align="right" valign="top" class="title01"><a title="点击此处查看提示信息" href="javascript:clicksa(config7);"><img height="16" alt="点击此处查看提示信息" src="../images/notice.gif" width="16" border="0" /></a> 用户中心公告：</td>
      <td align="left"><asp:TextBox ID="shopmembermsg" runat="server" Height="105px" TextMode="MultiLine" Width="340px"></asp:TextBox><span id="config7" style="display:none"><br />该信息将在用户中心欢迎页面显示</span></td>
    </tr>
    <tr style="display:none;">
      <td align="right" valign="top" class="title01"><a title="点击此处查看提示信息" href="javascript:clicksa(config8);"><img height="16" alt="点击此处查看提示信息" src="../images/notice.gif" width="16" border="0" /></a> 商店公告：</td>
      <td align="left"><asp:TextBox ID="shopmsg" runat="server" Height="105px" TextMode="MultiLine" Width="340px"></asp:TextBox><span id="config8" style="display:none"><br />以上内容将显示在首页商店公告中,注意控制公告内容长度不要超过公告显示区域大小。</span></td>
    </tr>
    <tr>
      <td height="40" align="right" valign="top">&nbsp;</td>
      <td align="left">
       <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../images/buttom-02.gif" OnClick="ImageButton1_Click" />
       <a href="javascript:form1.reset();"><img src="../images/button03.gif" border="0" /></a>
      </td>
    </tr>
  </table></td>
</tr>
</table>
</center>
    </div>
    </form>
</body>
</html>
